package com.itheima.controller;

import com.itheima.entity.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping("/link")
public class LinkController {

//    link/getLink
    @PostMapping("/getLink")
    public Result getLink(){
        return Result.success(UUID.randomUUID().toString());
    }
}
